package com.yanghang.cloudgoods.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/goods")
public class GoodsController {
    @Value("${server.port}")
    private String port;

     @GetMapping("/{id}")
    public String selectOne(@PathVariable("id") int id){
        return "我是订单服务，接受的id是"+id+"接收的端口号为"+port;
    }
}
